﻿<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cm";
%>
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>列表</title>
<link href="css_js/index.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="99%" border="0" cellspacing="0" cellpadding="0" id="index_content">
              <tr>
                <td valign="middle" >
					<table width="100%" border="0" cellspacing="0" cellpadding="0" id="index_main_div1">
					  <tr>
						<td height="21" background="image/index_main_div_titleBg.gif"><img style="margin-left:5px;" src="image/index_main_div_left.gif" width="6" height="2" align="absmiddle">&nbsp;<span style="font-weight:bold;font-size:12px;">客户拜访</span></td>
					  </tr>
					  <tr>
					    <td height="46" align="left" valign="middle" bgcolor="#f7fbfc" style="font-size:12px;color:#424446;">　　　今天需要联系的客户　已过期未联系的客户　<span style="color:#FF0000">全部</span></td>
			          </tr>
					</table>
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0" id="index_main_div1">
					  <tr>
						<td height="21" background="image/index_main_div_titleBg.gif"><img style="margin-left:5px;" src="image/index_main_div_left.gif" width="6" height="2" align="absmiddle">&nbsp;<span style="font-weight:bold;font-size:12px;">客户搜索</span></td>
					  </tr>
					  <tr>
					    <td height="56" align="left" valign="top" bgcolor="#f7fbfc"><form name="form1" method="post" action="">
					      <table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%" id="selectTable">
                            <tr>
                              <td width="11%">客户编码:</td>
                              <td width="17%"><input type="text" name="textfield" class="inputTextStyle"></td>
                              <td width="11%">客户名称:</td>
                              <td width="17%"><input type="text" name="textfield4" class="inputTextStyle"></td>
                              <td width="11%">拼音码:</td>
                              <td width="17%"><input type="text" name="textfield42" class="inputTextStyle"></td>
                              <td width="8%"><img src="image/s1.gif" width="59" height="22"></td>
                              <td width="7%" align="left"><img src="image/s2.gif" width="62" height="22"></td>
                              <td width="1%" align="left">&nbsp;</td>
                            </tr>
                            <tr>
                              <td>电话1:</td>
                              <td><input type="text" name="textfield2" class="inputTextStyle"></td>
                              <td>所属人部门:</td>
                              <td><select name="select2" class="selectOptionStyle">
                                <option value="-1" selected="selected">---</option>
                                <option value="1">重要客户</option>
                                <option value="2">潜在客户</option>
                              </select></td>
                              <td>所属人: </td>
                              <td><select name="select4" class="selectOptionStyle">
                                <option value="-1" selected="selected">---</option>
                                <option value="1">重要客户</option>
                                <option value="2">潜在客户</option>
                              </select></td>
                              <td colspan="3">&nbsp;</td>
                            </tr>
                            <tr>
                              <td>客户等级:</td>
                              <td>
							  <select name="select" class="selectOptionStyle">
							    <option value="-1" selected="selected">---</option>
							    <option value="1">重要客户</option>
							    <option value="2">潜在客户</option>
                              </select>
                              </td>
                              <td>客户来源:</td>
                              <td><select name="select3" class="selectOptionStyle">
                                <option value="-1" selected="selected">---</option>
                                <option value="1">重要客户</option>
                                <option value="2">潜在客户</option>
                              </select></td>
                              <td>客户性质:</td>
                              <td><select name="select5" class="selectOptionStyle">
                                <option value="-1" selected="selected">---</option>
                                <option value="1">重要客户</option>
                                <option value="2">潜在客户</option>
                              </select></td>
                              <td colspan="3">&nbsp;</td>
                            </tr>
                          </table>
                                                </form>
					    </td>
			          </tr>
					</table>		
					
					
					<table width="100%" border="0" cellspacing="0" cellpadding="0" id="select_table">
					  <tr>
						<td height="10" bgcolor="#f7fbfc">&nbsp;</td>
					  </tr>
					  <tr>
					    <td height="11"><img src="image/t1.gif" align="absmiddle"> <span style="font-size:14; font-weight:bold;">客户列表</span></td>
				      </tr>
					  <tr>
					    <td height="16" valign="top"><br/>
				        <img src="image/s3.gif" width="62" height="22"><img src="image/s4.gif" width="134" height="22"><img src="image/s5.gif" width="62" height="22"><img src="image/s6.gif" width="112" height="22"><img src="image/s7.gif" width="59" height="22"></td>
			          </tr>
					  <tr>
					    <td height="5" valign="top"></td>
				      </tr>
					  <tr>
					    <td height="28" valign="top">
							<table width="100%" border="0" cellspacing="0" cellpadding="0" id="selectTable_content">
							  <tr>
								<td width="51%" height="19" bgcolor="#f2faff" style="font-size:12px;">&nbsp;<img src="image/t2.gif" align="absmiddle" width="15" height="16">　导出 | 选择条目:0</td>
							    <td width="3%" bgcolor="#f2faff" style="font-size:12px;">&nbsp;</td>
							    <td width="46%" bgcolor="#f2faff" style="font-size:12px;" align="right">
							    共${page.totalCount}条 　
							    <a href="cm/custom!list.action?page.pageNo=1">首页</a>
								<s:if test="page.isHasPre()">
							    	<a href="cm/custom!list.action?page.pageNo=${page.pageNo-1}">上一页</a>
								</s:if><s:else>
							    	上一页
							    </s:else>
							    ${page.pageNo}/${page.totalPages}
								<s:if test="page.isHasNext()">
							    	<a href="cm/custom!list.action?page.pageNo=${page.pageNo+1}">下一页</a> 　
								</s:if><s:else>
							    	下一页
							    </s:else>
							    <a href="cm/custom!list.action?page.pageNo=${page.totalPages}">末页 </a>
							      <select name="select6">
							        <option value="1">第一页</option>
						          </select>
						          <select name="select7">
						            <option>10条</option>
                                                                    </select></td>
							  </tr>
							  <tr>
							    <td colspan="3" bgcolor="#f2faff">
								<table width="100%" border="0" cellspacing="0" cellpadding="0" id="select_row">
                                  <tr>
                                    <td width="4%" height="28" align="center" background="image/select_title_title.jpg"><input type="checkbox" name="checkbox" value="checkbox"></td>
                                    <td width="26%" align="left" background="image/select_title_title.jpg"><strong>客户名称</strong></td>
                                    <td width="7%" align="center" background="image/select_title_title.jpg"><strong>客户性质</strong></td>
                                    <td width="9%" align="center" background="image/select_title_title.jpg"><strong>客户等级</strong></td>
                                    <td width="12%" align="center" background="image/select_title_title.jpg"><strong>电话一</strong></td>
                                    <td width="18%" align="center" background="image/select_title_title.jpg"><strong>电子邮件</strong></td>
                                    <td width="10%" align="center" background="image/select_title_title.jpg"><strong>最后联系时间</strong></td>
                                    <td width="7%" align="center" background="image/select_title_title.jpg"><strong>联系人</strong></td>
                                    <td width="7%" align="center" background="image/select_title_title.jpg"><strong>联系记录</strong></td>
                                  </tr>
                                  
                                  
                                  <s:iterator value="#request.page.result" id="company">
	                                  <tr class="select_content_bg">
	                                    <td align="center"><input type="checkbox" name="checkbox2" value="checkbox"></td>
	                                    <td>${company.name}</td>
	                                    <td align="center">${company.quality}</td>
	                                    <td align="center">
	                                    	<s:iterator value="#request.list" id="dictionaryDetail">
	                                    		<s:if test="#dictionaryDetail.id == #company.grade">
	                                    			${dictionaryDetail.value}
	                                    		</s:if>
	                                    	</s:iterator>
	                                    </td>
	                                    <td align="center">${company.tel1}</td>
	                                    <td align="center">${company.email}</td>
	                                    <td align="center"><s:date name="#request.company.lastTouchDate" format="yyyy-MM-dd" nice="false"/></td>
	                                    <td align="center">查看</td>
	                                    <td align="center">查看</td>
	                                  </tr>
                                  </s:iterator>
                                  
                                  
                                  
                                  <tr>
                                    <td colspan="9">&nbsp;</td>
                                  </tr>
                                </table></td>
						      </tr>
							  <tr>
							    <td bgcolor="#f2faff">&nbsp;</td>
						        <td bgcolor="#f2faff">&nbsp;</td>
						        <td bgcolor="#f2faff"><span style="font-size:12px;">共${page.totalCount}条 　首页　上一页　1/1　下一页 　末页
                                <select name="select8">
                                      <option value="1">第一页</option>
                                </select>
						        <select name="select9">
                                  <option>10条</option>
                                </select>
						        </span></td>
							  </tr>
							</table>
						</td>
				      </tr>
					</table>
					
					</td>
              </tr>
            </table>
</body>
</html>
